
import 'package:flutter/material.dart';
import 'package:mvvmdemo/view/widget/sale/saleview.dart';
import 'package:mvvmdemo/viewmodel/buiness/saleviewmodel.dart';
import 'package:mvvmdemo/viewmodel/state/appmodel.dart';
import 'package:provider/provider.dart';

class SalePage extends StatefulWidget{
  const SalePage({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return SalePageState();
  }
}
class SalePageState extends State<SalePage>{

  @override
  Widget build(BuildContext context) {
    double width = MediaQuery.of(context).size.width;
    double height = MediaQuery.of(context).size.height;
    return Scaffold(
      body: SizedBox(
        width: width,
        height: height,
        child: const SaleView(),
      ),
    );
  }

  @override
  void initState() {
    SaleViewModel.getSaleViewModel()!.init();
    super.initState();
  }

}